<?php

namespace App\Kuafu\Config\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class ConfigEnum extends BaseCodeEnum
{
    const APP_TYPE_IOS     = "IOS";
    const APP_TYPE_ANDROID = "ANDROID";

    const APP_TYPE = [
        self::APP_TYPE_ANDROID => "安卓",
        self::APP_TYPE_IOS     => "ios"
    ];

    const APP_TYPE_MAPPING_TABLE_TYPE = [
        self::APP_TYPE_ANDROID => "appVersionAndroid",
        self::APP_TYPE_IOS     => "appVersionIos"
    ];

    const APP_NAME_TYPE_BUSINESS = 1;
    const APP_NAME_TYPE_BANK     = 2;
    const APP_NAME_TYPE_KMS_APP  = 3;
    const APP_NAME_TYPE_SCREEN   = 4;
    const APP_NAME_TYPE_POS_IPAD = 5;

    const APP_NAME_TYPE_MAP      = [
        self::APP_NAME_TYPE_BUSINESS => '夸父商家',
        self::APP_NAME_TYPE_BANK     => '夸父收银',
        self::APP_NAME_TYPE_KMS_APP  => '夸父运营',
        self::APP_NAME_TYPE_SCREEN   => '夸父商屏',
        self::APP_NAME_TYPE_POS_IPAD => '夸父收银-ipad',
    ];

    const APP_NAME_TYPE_KEY_MAP = [
        self::APP_NAME_TYPE_BUSINESS => '',
        self::APP_NAME_TYPE_BANK     => '',
        self::APP_NAME_TYPE_KMS_APP  => 'KMS',
        self::APP_NAME_TYPE_SCREEN   => 'SCREEN',
        self::APP_NAME_TYPE_POS_IPAD => 'POSIPAD',
    ];
}
